import entity.User;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import service.ShiroUserService;
import service.impl.SelectAllUserImpl;
import service.impl.ShiroUserServiceImpl;

import java.util.List;

/**
 * Created by thinkjoy on 2017/6/19.
 */
public class testlist extends JunitBaseTestCase{
    @Autowired
    private SelectAllUserImpl selectAllUser;
    @Autowired
    private ShiroUserServiceImpl shiroUserService;

    @Test
    public void testlists() throws Exception {
        List<User> userList=selectAllUser.queryAll();
        for(User user:userList){
            System.out.println(user.toString());
        }
    }

    @Test
    public void testone() throws Exception {
        System.out.println(shiroUserService.queryUser("许伟杰").toString());
    }
}
